package com.zhixin.fans.ks.ui.charge;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhixin.fans.ks.R;
import com.zhixin.fans.ks.api.res.VipOption;

import java.util.List;

public class ChargeVipAdapter extends BaseQuickAdapter<VipOption, BaseViewHolder> {
    public ChargeVipAdapter(@Nullable List<VipOption> data) {
        super(R.layout.item_charge_vip, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, VipOption item) {

        helper.setText(R.id.tv_vip_time, item.getV_name())
                .setText(R.id.tv_vip_price, String.format("%.2f元", item.getV_money()))
                .setText(R.id.tv_vip_desc, String.format("(%s)", item.getV_desc()));
    }
}
